function Enemy() {
	this.enemyBody;
	this.maxSpeed = 2;
	this.speed = 1;
	this.width = 15;
	this.height = 30;
	
	this.setupPhysics();
}

Enemy.prototype = {
	setupPhysics: function() {
		var fixDef = new box2d.b2FixtureDef();
		fixDef.density = 1;
		fixDef.friction = 0.5;
		fixDef.shape = new box2d.b2PolygonShape();
		fixDef.shape.SetAsBox(this.width / SCALE, this.height / SCALE);
		
		var bodyDef = new box2d.b2BodyDef();
		bodyDef.type = box2d.b2Body.b2_dynamicBody;
		bodyDef.position.x = 50 / SCALE;
		bodyDef.position.y = 550 / SCALE;
		bodyDef.fixedRotation = true;
		
		this.enemyBody = world.CreateBody(bodyDef);
		this.enemyBody.CreateFixture(fixDef);
	},
	
	move: function() {
		if(this.enemyBody.GetLinearVelocity().x < this.maxSpeed) {
			this.enemyBody.ApplyImpulse(new box2d.b2Vec2(this.speed, 0), this.enemyBody.GetWorldCenter());			
		}
	},
	
	update: function() {
		this.move();
	}
}